package org.jluzhCS.mylogin.domain;

import java.util.Date;

public class Book
{
	private String bookName;
	private String bookAuthor;
	private String bookPrice;
	
	public Book() {}
	public Book(String bookName, String bookAuthor, String bookPrice) 
	{
		super();
		this.bookName = bookName;
		this.bookAuthor = bookAuthor;
		this.bookPrice = bookPrice;
	}
	
	public String getBookName()
	{
		return bookName;
	}
	public void setBookName(String bookName)
	{
		this.bookName = bookName;
	}
	public String getBookAuthor()
	{
		return bookAuthor;
	}
	public void setBookAuthor(String bookAuthor)
	{
		this.bookAuthor = bookAuthor;
	}
	public String getBookPrice()
	{
		return bookPrice;
	}
	public void setBookPrice(String bookPrice)
	{
		this.bookPrice = bookPrice;
	}
	
	public boolean equals(Object obj) 
	{
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Book other = (Book) obj;
		if (bookName == null) {
			if (other.bookName != null)
				return false;
		} else if (!bookName.equals(other.bookName))
			return false;
		if (bookAuthor == null) 
		{
			if (other.bookAuthor != null)
				return false;
		} else if (!bookAuthor.equals(other.bookAuthor))
			return false;
		return true;
	}

}
